﻿/*
 * 
 * User: manju  Date: 6/25/2012
 * 
 */
using System;

namespace Examples
{
	
	
	public class CreditCard
	{
		private string bank;
		private string number;
		private string owner;
		private int expiryMonth;
		private int expiryYear;
		
		
		public CreditCard()
		{
		}
		
		public string Bank {
			get { return bank; }
			set { bank = value; }
		}

		public string Number {
			get { return number; }
			set { number = value; }
		}

		public string Owner {
			get { return owner; }
			set { owner = value; }
		}

		public int ExpiryMonth {
			get { return expiryMonth; }
			set { expiryMonth = value; }
		}

		public int ExpiryYear {
			get { return expiryYear; }
			set { expiryYear = value; }
		}
		
		public void PrintDetails(){
			Console.WriteLine(bank +  " " + Number + " " + ExpiryMonth + " / " + ExpiryYear);
		}
		
	}
}
